package com.heitian.ssm.dao;

import com.heitian.ssm.model.AddressList;
import com.heitian.ssm.model.User;
import com.heitian.ssm.util.Pager;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Zhangxq on 2016/7/15.
 */

@Repository
public interface AddressListDao {

    List<AddressList> selectAddressListBySearch(@Param("search") String search, @Param("pager")Pager pager);

    List<AddressList> selectAllAddressList(@Param("search") String search);

    List<AddressList> selectRecentAddressList(@Param("search") String search,@Param("place") String place);

    AddressList findAddressListById(@Param("id") String id);

    Integer saveAddressList(AddressList addressList);

    Integer updateAddressList(AddressList addressList);

    Integer deleteAddressList(@Param("id") String id);

    Integer getAddressListCount(@Param("search")String search);
}
